package org.wxd.rpc.dubbo.bootstrap;

import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.wxd.rpc.dubbo.xml.DubboXmlConsumer;

import java.io.IOException;

/**
 * Created by wangxd on 16/8/25.
 */
public class DubboXmlBootstrap {

    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[]{"classpath:spring/spring.xml"});
        context.start();
        System.out.println("consumer annotation start...");
        DubboXmlConsumer consumer = context.getBean(DubboXmlConsumer.class);
        consumer.test();
        System.out.println("consumer annotation end...");
    }
}
